Nevron Open Vision Documentation
Nevron.Nov.DataStructures Namespace / NArrayHelpers<T> Class / FirstItems Method


In This Topic
    FirstItems Method
    In This Topic
    Gets the first count items from the specified array. If array.Length is smaller than count, an array with array.Length size is returned.
    Syntax
    'Declaration
     
    
    Public Shared Function FirstItems( _
       ByVal itemsCount As System.Integer, _
       ByVal array() As T _
    ) As T()
    'Usage
     
    
    Dim itemsCount As System.Integer
    Dim array() As T
    Dim value() As T
     
    value = NArrayHelpers(Of T).FirstItems(itemsCount, array)
    public static T[] FirstItems( 
       System.int itemsCount,
       T[] array
    )

    Parameters

    itemsCount
    array
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also